﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using EPiServer;
using EPiServer.Core;
using EPiServer.DataAbstraction;
using EPiServer.DataAnnotations;
using EPiServer.Filters;
using EPiServer.ServiceLocation;

namespace EPiBoost.Core.DataAnnotations
{
	public class AutoImageThumbnailAttribute : EPiServer.DataAnnotations.ImageUrlAttribute
	{
		private const string m_ClassName = "AutoImageThumbnailAttribute";
		private const string m_Unknown = "?";

		public AutoImageThumbnailAttribute(Type type) : base(GetUrl(type))
		{ 
			
		}

		private static string GetUrl(Type type)
		{
			return Handlers.PageTypeThumbnailHandler.GetPath(type);
		}


	}
}
